﻿<%@ Page Title="" Language="C#" StylesheetTheme="AdminTheme" MasterPageFile="~/Backend/mtpAdmin.master" AutoEventWireup="true" CodeBehind="PanelList.aspx.cs" Inherits="HPortal.Backend.PanelList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="dvTitleContent"> 

    Quản lý trang :: Nội dung trang</div>
    <table class="MainTable">
    <tr>
        <td >
            Chuyên mục:
        </td>
        <td>
            <asp:DropDownList ID="cboChannelList" runat="server" Width="200px" 
                AutoPostBack="True" 
                onselectedindexchanged="cboChannelList_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
    <td colspan="2">
    <fieldset>
    <legend>Danh sách các khối tin trên trang</legend>

    <asp:GridView ID="grvPanelList" runat="server" AutoGenerateColumns="False" 
            SkinID="tGridview">
        <Columns>
            <asp:BoundField DataField="Header" HeaderText="Tên khối tin" />
            <asp:BoundField DataField="Control" HeaderText="Kiểu hiển thị tin" />
            <asp:BoundField DataField="Cell" HeaderText="Vùng hiển thị" />
            <asp:BoundField DataField="Priority" HeaderText="Thứ tự" />
            <asp:BoundField DataField="DisplayContainer" HeaderText="Hiển thị khung" />
            <asp:BoundField DataField="DisplayInAllChannel" 
                HeaderText="Hiển thị mọi trang" />
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <asp:LinkButton ID="lnkChoose" runat="server" CausesValidation="False" 
                        CommandName="Select" Text="Chọn" 
                        CommandArgument='<%# Eval("PanelID", "{0}") %>' onclick="lnkChoose_Click"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
        </fieldset>
    </td>
    </tr>
    <tr>
    <td colspan="2">
        <fieldset>
    <legend>Thêm khối tin vào trang</legend>
        <table >
            <tr>
                <td >
                    Mã khối tin</td>
                <td>
                    <asp:TextBox ID="txtPanelID" runat="server" Width="50px" Enabled="false"></asp:TextBox></td>
            </tr>
            <tr>
                <td >
                    Tên khối tin</td>
                <td>
                    <asp:TextBox ID="txtHeader" runat="server" Width="200px"></asp:TextBox></td>
            </tr>
            <tr>
            <td>
                Kiểu hiển thị tin</td>
            <td><asp:DropDownList ID="cboControl" runat="server" Width="200px">
                        </asp:DropDownList>
            </td>
            </tr>
            <tr>
            <td>
                Vùng hiển thị</td>
            <td>
                <asp:DropDownList ID="cboCell" runat="server" Width="200px">
                </asp:DropDownList>
            </td>
            </tr>
            <tr >
                <td>
                    Thứ tự</td>
                <td>
                    <asp:TextBox ID="txtPriority" runat="server" Width="50px"></asp:TextBox></td>
            </tr>
            <tr>
                <td>
                    Lưu 1</td>
                <td>
                    <asp:TextBox ID="txtField1" runat="server" Width="200px"></asp:TextBox></td>
            </tr>
            <tr>
                <td>
                    Lưu 2</td>
                <td>
                    <asp:TextBox ID="txtField2" runat="server" Width="200px"></asp:TextBox></td>
            </tr>
            <tr>
            <td colspan="2">
                <asp:CheckBox ID="chkDisplayInAllChannel" runat="server" Text="Hiển thị trên mọi trang">
                </asp:CheckBox></td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:CheckBox ID="chkDisplayContainer" runat="server" Checked="True" 
                        Text="Hiển thị khung">
                    </asp:CheckBox></td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="cmdSave" runat="server" onclick="cmdSave_Click" Text="Lưu" 
                        Width="80px" />
&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="cmdNew" runat="server" onclick="cmdNew_Click" Text="Thêm mới" 
                        Width="80px" />
&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="cmdDelete" runat="server" onclick="cmdDelete_Click" Text="Xóa" 
                        Width="80px" />
                </td>
            </tr>
            <tr>
                <td colspan="2" class="style1">
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="2" >
                    &nbsp;</td>
            </tr>
    </table>

    </fieldset>

    </td>
    </tr>
</table>
    
</asp:Content>
